<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>数组1</title>
		<script>
			let arr1 = [5, 7, 10, 12, 30]
			/* 求数组中最大的数字 */
			console.log(Math.max(5, 7, 10, 12, 30)) // 30
			/* 扩展运算符 */
			console.log(arr1)
			// 扩展运算，得到的是5, 7, 10, 12, 30
			console.log(...arr1)
			console.log(Math.max(...arr1)) // 30
		</script>
	</head>
	<body>
	</body>
</html>